<div class="page">
    <div class="pt-page-header">
        {$webName}
    </div>
    <div class="pt-page-body">
        <div class="pt-page-main">
            <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            配置信息
                        </div>
                        <div class="panel-body">


                            <form action="" method="post">
                                <div class="form-group">
                                    <label for="port">默认端口(80)</label>
                                    <input type="number" class="form-control" id="port" value="{$webConf.port}" name="port" placeholder="服务器默认监听的端口">
                                </div>
                                <div class="form-group">
                                    <label for="document_root">网站目录</label>
                                    <input type="text" class="form-control" name="document_root" id="document_root" value="{$webConf.document_root}" placeholder="网站目录">
                                </div>
                                <div class="form-group">
                                    <label for="server_name">网站域名</label>
                                    <input type="text" class="form-control" name="server_name" id="server_name" value="{$webConf.server_name}" placeholder="网站域名">
                                    <span class="help-block">多个域名，请‘,’隔开</span>
                                </div>
                                <div class="form-group">
                                    <label for="access_denied">拒绝访问的文件类型</label>
                                    <input type="text" class="form-control" name="access_denied" id="access_denied" value="{$webConf.access_denied}" placeholder="">
                                    <span class="help-block">多个域名，请‘,’隔开</span>
                                </div>

                                <div class="form-group">
                                    <label for="exit_process">保持进程</label>
                                    <div class="switch switch-small" data-on="success" data-off="warning">
                                        <input class="form-control" id="exit_process" name="exit_process" type="checkbox" {if $webConf.exit_process == 'on'}checked {/if} >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="rewrite">重写　　</label>
                                    <div class="switch switch-small" data-on="success" data-off="warning">
                                        <input class="form-control" id="rewrite" name="rewrite" type="checkbox" checked value="on"/>
                                    </div>

                                </div>
                                <div class="form-group">
                                    <label for="rewrite" >重写规则</label>
                                    <textarea class="form-control" id="rewriteRoute" rows="5" placeholder="重写规内容">{$webConf.rewriteRoute}</textarea>
                                    <span class="help-block">一行一条规则</span>
                                </div>
                                <div class="form-group">
                                    <label for="data_timezone" >默认时区</label>
                                    <select class="form-control col-sm-4 col-xs-4" name="data_timezone" id="data_timezone">
                                        <option value="RPC">中国时区</option>
                                    </select>
                                </div>


                                <button type="submit" class="btn btn-default">提交</button>
                            </form>


                        </div>
                    </div>
                </div>

            </div>



        </div>
    </div>
</div>

<!--page bootstrap plug-->
<script src="{$Public}/Static/bootstrap_switch/bootstrap-switch.min.js"></script>
<link rel="stylesheet" href="{$Public}/Static/bootstrap_switch/bootstrap-switch.min.css"/>


<script>
    $(document).ready(function(){
        $('.switch>input').bootstrapSwitch('toggleState');
    })
</script>